<% content_tag :div, :class=>"resultsbox" do -%>
	<% content_tag :table, :id => 'searchtable', :class => 'container sortable', :border => '0', :cellpadding => '0',:cellspacing => '0', :width => "400" do %>
		<% content_tag :tr do -%>
	    	<%= content_tag :td, 'Kind', :width => '20' -%>
	    	<%= content_tag :td, 'Name', :width => '100' -%>
			<%= content_tag :td, 'Body', :width => '100' -%>
			<%= content_tag :td, 'ID', :width => '100' -%>
	  	<% end -%>
		<% for item in @search_list -%>
			<% if item.class == ActionItem -%>
				<% content_tag :tr do -%>
					<% content_tag :td do -%>
						<%= content_tag :img, nil,:src => '/images/icons/icons_10.png', :class => 'icon' -%>
					<% end -%>
					<%= content_tag :td, link_to(highlight(item.first_entry.name, @input ), :controller => 'projects', :action => 'edit', :id => item.id) -%>
					<%= content_tag :td, highlight(truncate(item.first_entry.note, 30 ), @input) -%>
					<%= content_tag :td, item.id -%>
				<% end -%>
			<% elsif item.class == Project -%>
					<% content_tag :tr do -%>
						<% content_tag :td do -%>
							<%= content_tag :img, nil,:src => '/images/icons/icons_27.png', :class => 'icon' -%>
						<% end -%>
						<%= content_tag :td, link_to(highlight(item.first_entry.name, @input ), :controller => 'projects', :action => 'edit_project', :id => item.id)  -%>
						<%= content_tag :td, highlight(truncate(item.first_entry.note, 30 ), @input) -%>
						<%= content_tag :td, item.id -%>
					<% end -%>
			<% elsif item.class == Contact -%>
					<% content_tag :tr do -%>
						<% content_tag :td do -%>
							<%= content_tag :img, nil,:src => '/images/icons/icons_71.png', :class => 'icon' -%>
						<% end -%>
						<%= content_tag :td, link_to( highlight(item.first_entry.fname + " " +item.first_entry.lname, @input ), :controller => 'contacts', :action => 'edit', :id => item.id) -%>
						<%= content_tag :td, highlight(truncate(item.first_entry.note, 30 ), @input) -%>
						<%= content_tag :td, item.id -%>
					<% end -%>
			<% elsif item.class == Fund -%>
				<% content_tag :tr do -%>
						<% content_tag :td do -%>
							<%= content_tag :img, nil,:src => '/images/icons/icons_56.png', :class => 'icon' -%>
						<% end -%>
						<%= content_tag :td, link_to( highlight(item.first_entry.name, @input ),:controller => 'finances', :action => 'edit_fund', :id => item.id) -%>
						<%= content_tag :td, highlight(truncate(item.first_entry.note, 30 ), @input) -%>
						<%= content_tag :td, item.id -%>
				<% end -%>
			<% elsif item.class == LineItem -%>
					<% content_tag :tr do -%>
						<% content_tag :td do -%>
							<%= content_tag :img, nil,:src => '/images/icons/icons_42.png', :class => 'icon' -%>
						<% end -%>
						<%= content_tag :td, link_to(highlight(item.first_entry.name, @input ),:controller => 'contacts', :action => 'edit', :id => item.id ) -%>
						<%= content_tag :td, highlight(truncate(item.first_entry.note, 30 ), @input) -%>
						<%= content_tag :td, item.id -%>
					<% end -%>
			<% elsif item.class == Announcement -%>
					<% content_tag :tr do -%>
						<% content_tag :td do -%>
							<%= content_tag :img, nil,:src => '/images/icons/icons_14.png', :class => 'icon' -%>
						<% end -%>
						<%= content_tag :td, link_to(highlight(item.title, @input ),:controller => 'community', :action => 'show', :id => item.id ) -%>
						<%= content_tag :td, highlight(truncate(item.first_entry.note, 30 ), @input) -%>
						<%= content_tag :td, item.id -%>
					<% end -%>
			<% end -%>
		<% end -%>
	<% end %>
<% end -%>